<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
Object obj=request.getSession().getAttribute("role_resource");
if(null==obj){
	response.setStatus(1000);
	return;
}
%> 
    
	<script type="text/javascript">
		var prod_opera; //action url
	
    	//卡类型数据源
		var dimen_store = new Ext.data.JsonStore({
    		root: "data",
    		totalProperty: "total",
    		fields : [ "field_type", "field", "field_name"],
			url : "dimnsion!dimenGridList.action"
    	});

		//定义数据显示面板
		var p1 = {
			id: "p1",
			xtype: "grid",
			stripeRows:true,
			loadMask : true,//在加载数据时遮罩住元素,替换元素Updater的加载提示器，并且在初始化加载之后销毁
			autoExpandColumn: "cn_name",
			autoExpandMin : 100,//自动填充最小宽度
			store: dimen_store,
			headersDisabled: true,
			columns:[
	        	new Ext.grid.RowNumberer({header: "序号", width: 50}),
    					{header: "维度类型编号",	dataIndex: "field_type", menuDisabled: true},
    					{header: "字段名",		dataIndex: "field", menuDisabled: true},
    					{header: "字段中文名称",	dataIndex: "field_name",id:"cn_name", menuDisabled: true}
			],
			bbar: new Ext.ux.PagingToolbar({
            	pageSize: limit,
            	store: dimen_store
        	})
		};
		
		dimen_store.load({params:{start : 0,limit : limit}});
		
		var CenterPanel=Ext.getCmp("CenterPanel");
		CenterPanel.removeAll();
		CenterPanel.add(p1);
		CenterPanel.doLayout();
	</script>
